import request from '@/utils/request'

// 查询报修管理列表
export function listRepairReport(query) {
  return request({
    url: '/manage/repairReport/list',
    method: 'get',
    params: query
  })
}

// 查询报修管理详细
export function getRepairReport(id) {
  return request({
    url: '/manage/repairReport/' + id,
    method: 'get'
  })
}

// 新增报修管理
export function addRepairReport(data) {
  return request({
    url: '/manage/repairReport',
    method: 'post',
    data: data
  })
}

// 修改报修管理
export function updateRepairReport(data) {
  return request({
    url: '/manage/repairReport',
    method: 'put',
    data: data
  })
}

// 删除报修管理
export function delRepairReport(id) {
  return request({
    url: '/manage/repairReport/' + id,
    method: 'delete'
  })
}
